{% extends "api/base.html" %} {% load static %}{% load thumbnail %}{% block body_header %}
<style>
</style>
{% endblock %} {% block content %}
{% if object.picture1 or object.picture2 or object.picture3 %}
<div id="carouselExampleIndicators" class="carousel slide" data-ride="carousel">
    <ol class="carousel-indicators">
        <li data-target="#carouselExampleIndicators" data-slide-to="0" class="active"></li>
        <li data-target="#carouselExampleIndicators" data-slide-to="1"></li>
        <li data-target="#carouselExampleIndicators" data-slide-to="2"></li>
    </ol>
    <div class="carousel-inner">
        {% if object.picture1 %}
        <div class="carousel-item active">
            <img class="d-block w-100" src="{% thumbnail object.picture1 1024x200 crop %}" alt="First slide">
        </div>
        {% endif %} {% if object.picture2 %}
        <div class="carousel-item">
            <img class="d-block w-100" src="{% thumbnail object.picture2 1024x200 crop %}" alt="Second slide">
        </div>
        {% endif %} {% if object.picture3 %}
        <div class="carousel-item">
            <img class="d-block w-100" src="{% thumbnail object.picture3 1024x200 crop %}" alt="Third slide">
        </div>
        {% endif %}
    </div>
</div>
{% endif %}
<div class="container text-center">
    <h1 style="min-width: 690px;">{{ object.subject }}</h1>
    <p>{{object.publishdate}}</p>
    <p>发布部门： {{object.department|default:"--"}} . 作者：{{ object.author }} . <span>阅读{{ object.read_count }}次</span></p>
</div>
<div class="container">
    <h4><strong>【摘要】</strong></h4>
    <p>&nbsp;&nbsp;&nbsp;&nbsp;{{object.summary|safe}}</p>
    <h4><strong>【正文】</strong></h4>
    {{object.content|safe}}
</div>
{% endblock %}
{% block extbody_js %}
<script>
    $(function () {
        window.channel.setToken("1222222222222222222222");
    });
</script>
{% endblock %}